//---------------------------------------------------------------------------

#ifndef FormItemDrugPharmGroupsSetsH
#define FormItemDrugPharmGroupsSetsH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "DBGridEh.hpp"
#include "DBGridEhGrouping.hpp"
#include "FIBDatabase.hpp"
#include "FIBDataSet.hpp"
#include "GridsEh.hpp"
#include "pFIBDatabase.hpp"
#include "pFIBDataSet.hpp"
#include "PropFilerEh.hpp"
#include "PropStorageEh.hpp"
#include "TemplateListEditor.h"
#include <Data.DB.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.ImgList.hpp>
#include <Vcl.ToolWin.hpp>
#include "DBCtrlsEh.hpp"
#include "DBLookupEh.hpp"
#include <Vcl.Mask.hpp>
#include <Datasnap.DBClient.hpp>
#include <Vcl.ActnCtrls.hpp>
#include <Vcl.ActnMan.hpp>
#include "FIBQuery.hpp"
#include "pFIBQuery.hpp"
#include <Vcl.Buttons.hpp>
//---------------------------------------------------------------------------
class TItemDrugPharmGroupsSetsForm : public TListEditorTemplate
{
__published:	// IDE-managed Components
	TDBGridEh *SelectedDBGridEh;
	TpFIBDataSet *SelectedDataSet;
	TDataSource *SelectedDataSource;
	TPanel *PanelDropDownSelection;
	TLabel *Label1;
	TDBLookupComboboxEh *DBLookupComboboxEh;
	TpFIBDataSet *GenericNamesDataSet;
	TDataSource *GenericNamesDataSource;
	TClientDataSet *MasterDataSet;
	TDataSource *MasterDataSource;
	TPanel *PanelDivider;
	TpFIBQuery *Query;
	TSpeedButton *AddSpeedButton;
	TSpeedButton *DeleteSpeedButton;
	TSpeedButton *DeleteAllSpeedButton;
	void __fastcall FormResize(TObject *Sender);
	void __fastcall DBLookupComboboxEhEditButtonsEllipsisClick(TObject *Sender, bool &Handled);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall DBLookupComboboxEhChange(TObject *Sender);
	void __fastcall DBGridEhKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall SelectedDBGridEhKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall AddSpeedButtonClick(TObject *Sender);
	void __fastcall DeleteSpeedButtonClick(TObject *Sender);
	void __fastcall DeleteAllSpeedButtonClick(TObject *Sender);
	void __fastcall DBGridEhDblClick(TObject *Sender);
	void __fastcall SelectedDBGridEhDblClick(TObject *Sender);
	void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall DBLookupComboboxEhEnter(TObject *Sender);
	void __fastcall DBLookupComboboxEhEditButtonsDropDownClick(TObject *Sender, bool &Handled);
	void __fastcall DBLookupComboboxEhKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
private:	// User declarations
	int GenericNameID;
public:		// User declarations
	__fastcall TItemDrugPharmGroupsSetsForm(TComponent* Owner);
	void __fastcall ShowModal(TpFIBTransaction* ParentTransaction, int GenericNameID = -1);
	void __fastcall ShowModal(int GenericNameID = -1);
};
//---------------------------------------------------------------------------
extern PACKAGE TItemDrugPharmGroupsSetsForm *ItemDrugPharmGroupsSetsForm;
//---------------------------------------------------------------------------
#endif
